<div id="sidebar">
<!-- Advance search by Najeeb, Naseer 11 Jan, 2012 -->
<?php $post_cats = wp_get_post_categories($post -> ID);?>

<?php //get_template_part('advance-search');?>

<?php if ( !dynamic_sidebar('sidebar-widget-area') ); ?>

<?php 
?>
    
    
</div><!-- #sidebar -->


<script type="text/javascript">
<?php
//hiding about us and banner above for all page but HOME it as per Faisal request on 5 March, 2012
if(!is_home())
{
?>
	//jQuery("#wpshower_adplace-4").hide();
	jQuery("#text-3").hide();
<?php
}

//to remove this gallery from profile 3 page

if(in_array(111, $post_cats))				//111 = Profile 3
{
	?>
	//jQuery("#wpshower_adplace-4").hide();
	jQuery("#text-5").hide();
<?php
}

if(in_array(31, $post_cats) and is_single())		//31 = Products
{
	?>
	//jQuery("#wpshower_adplace-4").hide();
	jQuery("#text-15").show();
<?php
}
else
{
	?>
	jQuery("#text-15").hide();
<?php
}
?>
</script>